<%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 2025/3/24
  Time: 11:04
  To change this template use File | Settings | File Templates.
--%>
<%@ page language="java" import="java.util.*" pageEncoding="utf-8" %>
<%
    String path = request.getContextPath();
    String basePath  =request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<html>
<head>
    <base href="<%=basePath%>">
    <title>网上调查步骤之二</title>
</head>
<body>
<%
    String name=request.getParameter("name");
    name=new String(name.getBytes("ISO-8859-1"),"UTF-8");
    String sex=request.getParameter("sex");
    if(sex.equals("male"))
        sex="先生";
    else sex="女士";
    session.putValue("namesex",name+sex);
%>
<%@include file="top.html"%>
<p>
    <%=name%>
    <%=sex%>
    ,你好，请继续完成调查</p>
<p>你的业余爱好:</p>
<form name="form1" method="post" action="result.jsp">
    <p>
        <input name="hobby0" type="checkbox" id="film" value="影视鉴赏">
    影视鉴赏</p>
    <p>
        <input name="hobby1" type="checkbox" id="book" value="阅读书籍">
        阅读书籍</p>
    <p>
        <input name="hobby2" type="checkbox" id="aports" value="体育运动">
        体育运动</p>
    <input type="submit" name="Submit" value="下一步">
    <input type="reset" name="Reset" value="重置">
</p>
</form>
</body>
</html>
